package com.ctbri.io;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

public class Ex7 {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new FileReader("C:/HPDIU.log"));
		String s;
		List<String> lines = new LinkedList<String>();
		while((s = in.readLine()) != null){
			lines.add(s);
		}
		in.close();
		Collections.reverse(lines);
		System.out.println(lines);
	}
}
